/*
 * $Id: AbstractHstSystemContactLogs.java,v 1.3 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Wed May 13 09:19:29 CDT 2009 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the HST_SYSTEM_CONTACT_LOGS table. 
 * You can customize the behavior of this class by editing the class, {@link HstSystemContactLogs()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractHstSystemContactLogs 
    implements Serializable
{
    /**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 3907167752793217787L;

	/** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Long systemContactLogId;

    /** The value of the hstSystemContactInfo association. */
    private HstSystemContactInfo hstSystemContactInfo;

    /** The value of the simple contactLogText property. */
    private java.lang.String contactLogText;

    /**
     * Simple constructor of AbstractHstSystemContactLogs instances.
     */
    public AbstractHstSystemContactLogs()
    {
    }

    /**
     * Constructor of AbstractHstSystemContactLogs instances given a simple primary key.
     * @param systemContactLogId
     */
    public AbstractHstSystemContactLogs(java.lang.Long systemContactLogId)
    {
        this.setSystemContactLogId(systemContactLogId);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Long
     */
    public java.lang.Long getSystemContactLogId()
    {
        return systemContactLogId;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param systemContactLogId
     */
    public void setSystemContactLogId(java.lang.Long systemContactLogId)
    {
        this.hashValue = 0;
        this.systemContactLogId = systemContactLogId;
    }

    /**
     * Return the value of the SYSTEM_CONTACT_INFO_ID column.
     * @return HstSystemContactInfo
     */
    public HstSystemContactInfo getHstSystemContactInfo()
    {
        return this.hstSystemContactInfo;
    }

    /**
     * Set the value of the SYSTEM_CONTACT_INFO_ID column.
     * @param hstSystemContactInfo
     */
    public void setHstSystemContactInfo(HstSystemContactInfo hstSystemContactInfo)
    {
        this.hstSystemContactInfo = hstSystemContactInfo;
    }

    /**
     * Return the value of the CONTACT_LOG_TEXT column.
     * @return java.lang.String
     */
    public java.lang.String getContactLogText()
    {
        return this.contactLogText;
    }

    /**
     * Set the value of the CONTACT_LOG_TEXT column.
     * @param contactLogText
     */
    public void setContactLogText(java.lang.String contactLogText)
    {
        this.contactLogText = contactLogText;
    }

    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof HstSystemContactLogs))
            return false;
        HstSystemContactLogs that = (HstSystemContactLogs) rhs;
        if (this.getSystemContactLogId() == null || that.getSystemContactLogId() == null)
            return false;
        return (this.getSystemContactLogId().equals(that.getSystemContactLogId()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int systemContactLogIdValue = this.getSystemContactLogId() == null ? 0 : this.getSystemContactLogId().hashCode();
            result = result * 37 + systemContactLogIdValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}
